
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script>
  wx.config({
    //debug: true,
    appId: '{$AppID}',
    timestamp: <?php echo ($signPackage["timestamp"]?$signPackage["timestamp"]:0);?>,
    nonceStr: '<?php echo $signPackage["nonceStr"];?>',
    signature: '<?php echo $signPackage["signature"];?>',
    jsApiList: [
      'onMenuShareTimeline',
      'onMenuShareAppMessage',
      'onMenuShareQQ',
      'onMenuShareWeibo',
      'showOptionMenu',
      'hideOptionMenu',
      'hideMenuItems',
      'hideAllNonBaseMenuItem'
    ]
  });
  wx.ready(function () {
  	wx.hideAllNonBaseMenuItem();
	
	if( typeof wx_ready_callback == "function"){
		wx_ready_callback();
	}
	
  });

</script>